package com.zenithsun.common.review.service;

import java.util.List;

import com.syzg.common.service.BaseService;
import com.zenithsun.common.review.model.Reviewdetail;

/**
 * 
 * @author wanglei@enersun.com.cn
 */
public interface ReviewdetailService extends BaseService<Reviewdetail> {

	/**
	 * 创建一个审核明细并绑定审核流程ID
	 * @param reviewdetail
	 * @return boolean
	 * @throws Exception
	 */
	public boolean createReviewDetail(Reviewdetail reviewdetail) throws Exception;
	
	/**
	 * 获取最新的审核结果
	 * @param revId
	 * @return Reviewdetail
	 * @throws Exception
	 */
	public Reviewdetail getCurrReview(String revId) throws Exception;
	
	/**
	 * 获取审核结果列表
	 * @param revId
	 * @return List<Reviewdetail>
	 * @throws Exception
	 */
	public List<Reviewdetail> listCurrReview(String revId) throws Exception;
}